//commands
#define CMMC_Reset				0
#define CMMC_SendOPCond			1
#define	CMMC_SendCSD			9
#define CMMC_SingleBlockRead	17
#define CMMC_SingleBlockWrite	24
#define CMMC_DisableCRC			59
//functions

void CommandMMC(unsigned char cmd_index, unsigned long cmd_argument);
unsigned char WaitResponseMMC(void);
unsigned char InitMMC(void);
unsigned char GetDataResponseMMC(void);
unsigned char WaitUntilReadyMMC(void);
unsigned char WriteMMC(unsigned long StartAddress,unsigned char* data);
unsigned char ReadMMC(unsigned long StartAddress, unsigned char* data);
